<script type="text/javascript">
// 	$('#editGoodsForm').form({
// 		onSubmit : function() {
// 			var isValid = $(this).form('validate');
// 			return isValid;
// 		},
// 		success : function(result) {
// 			result = $.parseJSON(result);
// 			if (result.success){
// 	        	$.messager.show({
// 	                title:'系统提示',
// 	                msg:'操作成功.'
// 	            });
// 	        	reloadGoods();
// 	        } else {
// 	            $.messager.show({    // show error message
// 	                title: '系统提示',
// 	                msg: result.msg
// 	            });
// 	        }
// 		}
// 	});
	function saveHotelInfo() {
		var d = $('#editHotelInfoForm');
		var validate = d.form("validate");
        printLog(validate);
        if (validate) {
       	    printLog(d.form("getData"));
// 	       	$.post('tranDriver.do?deleteTranDriverItems',{ids:ids},function(result){
// 	             if (result.success){
// 	             	reloadTranDriver();    
// 	             }
// 	             showMsg(result.msg);
// 	        },'json');
           	$.ajax({
           	  type: 'POST',
           	  url: 'hotelInfo.do?saveHotelInfo',
           	  data: d.form("getData"),
           	  dataType:'json',
           	  success: function(data) {
           		  showMsg(data.msg);
           	  }
           	});
        } else {
            return false;
        }
	}
</script>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
		
		<form id="editHotelInfoForm" method="post" action=""  >
		
		<table cellpadding="5">
			<input name="id" type="hidden" value="${(hotelInfoItem.id)!}" />
			<tr>
				<td>酒店名称:</td>
				<td>
					<input name="name"  class="easyui-validatebox" data-options="required: true" value="${(hotelInfoItem.name)!}"/>
				</td>
			</tr>
			<tr>
				<td>酒店地址:</td>
				<td>
					<input name="address"  class="easyui-validatebox" data-options="required: true" value="${(hotelInfoItem.address)!}"/>
				</td>
			</tr>
			<tr>
				<td>酒店联系人:</td>
				<td>
					<input name="contacts"  class="easyui-validatebox" data-options="required: true" value="${(hotelInfoItem.contacts)!}"/>
				</td>
			</tr>
			<tr>
				<td>酒店电话:</td>
				<td>
					<input name="telephone"  class="easyui-validatebox" data-options="required: true" value="${(hotelInfoItem.telephone)!}"/>
				</td>
			</tr>
		</table>
		</form>
	</div>
	<div data-options="region:'south',border:false">
		<div style="padding:3px 0;border-top:1px solid #95B8E7;text-align: center;">
			<@eu.linkbutton showName="确定保存" shiro="hotel:hotelinfo:edit" iconCls="icon-save" onclick="saveHotelInfo()"/>
	    </div>
	</div>
</div>


